package autoorder.zsxmlv.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: ZSXM
 * @Description:
 * @Company: DingZheng
 * @Date: Create by 2018/6/15 14:49
 * @Version: 1.0
 * @Modify by:
 */
public class OrderVo {

    private Integer orderId;

    private String orderNum;

    private BigDecimal orderPrice;

    private String qrCode;

    private Integer isOk;

    private String goodsName;

    private String goodsPrice;

    private String custname;

    private String userPhone;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date orderTime;

    public OrderVo() {
    }

    public OrderVo(Integer orderId, String orderNum, BigDecimal orderPrice, String qrCode, Integer isOk, String goodsName, String goodsPrice, String custname, String userPhone, Date orderTime) {
        this.orderId = orderId;
        this.orderNum = orderNum;
        this.orderPrice = orderPrice;
        this.qrCode = qrCode;
        this.isOk = isOk;
        this.goodsName = goodsName;
        this.goodsPrice = goodsPrice;
        this.custname = custname;
        this.userPhone = userPhone;
        this.orderTime = orderTime;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public BigDecimal getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(BigDecimal orderPrice) {
        this.orderPrice = orderPrice;
    }

    public String getQrCode() {
        return qrCode;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }

    public Integer getIsOk() {
        return isOk;
    }

    public void setIsOk(Integer isOk) {
        this.isOk = isOk;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(String goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getCustname() {
        return custname;
    }

    public void setCustname(String custname) {
        this.custname = custname;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    @Override
    public String toString() {
        return "OrderVo{" +
                "orderId=" + orderId +
                ", orderNum='" + orderNum + '\'' +
                ", orderPrice=" + orderPrice +
                ", qrCode='" + qrCode + '\'' +
                ", isOk=" + isOk +
                ", goodsName='" + goodsName + '\'' +
                ", goodsPrice='" + goodsPrice + '\'' +
                ", custname='" + custname + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", orderTime=" + orderTime +
                '}';
    }
}
